<?php
class UserVipShopVo extends SzAbstractMySqlVo
{

    private $userId;
    private $itemId;
    private $isSale;
    private $isNew;
    private $num;
    private $time;

    /**
     * Initialize UserVipShopVo.
     *
     * @param $userId
     * @param $itemId
     * @param $isSale
     * @param $isNew
     * @param $num
     * @param $time
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return UserVipShopVo
     */
    public function __construct($userId, $itemId, $isSale, $isNew, $num, $time, $isInsert = false) {
        $this->userId = $userId;
        $this->itemId = $itemId;
        $this->isSale = $isSale;
        $this->isNew = $isNew;
        $this->num = $num;
        $this->time = $time;

        $this->isInsert = $isInsert;
        $this->voClassName = 'UserVipShopVo';
        $this->ormName = 'UserVipShop';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'itemId' => $this->getItemId(),
            'isSale' => $this->getIsSale(),
            'isNew' => $this->getIsNew(),
            'num' => $this->getNum(),
            'time' => $this->getTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'itemId' => $this->getItemId(),
            'isSale' => $this->getIsSale(),
            'isNew' => $this->getIsNew(),
            'num' => $this->getNum(),
            'time' => $this->getTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getItemId(),
            $this->getIsSale(),
            $this->getIsNew(),
            $this->getNum(),
            $this->getTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getItemId()
    {
        return $this->itemId;
    }

    public function setItemId($val)
    {
        $this->saveColumnStatus(1, $this->itemId);
        $this->itemId = $val;
    }

    public function getIsSale()
    {
        return $this->isSale;
    }

    public function setIsSale($val)
    {
        $this->saveColumnStatus(2, $this->isSale);
        $this->isSale = $val;
    }

    public function getIsNew()
    {
        return $this->isNew;
    }

    public function setIsNew($val)
    {
        $this->saveColumnStatus(3, $this->isNew);
        $this->isNew = $val;
    }

    public function getNum()
    {
        return $this->num;
    }

    public function setNum($val)
    {
        $this->saveColumnStatus(4, $this->num);
        $this->num = $val;
    }

    public function getTime()
    {
        return $this->time;
    }

    public function setTime($val)
    {
        $this->saveColumnStatus(5, $this->time);
        $this->time = $val;
    }

}